cmake_minimum_required(VERSION 2.6)
project (SudokuTools)

#SET(CMAKE_CXX_FLAGS "-std=c++0x")
#add_definitions(-std=c++0x)

set(PROJECT_ROOT_DIR ./)
set(PROJECT_SOURCE_DIR ${PROJECT_ROOT_DIR})
set(CMAKE_BINARY_DIR ${PROJECT_ROOT_DIR})
set(PROJECT_INCLUDE_DIR ${PROJECT_ROOT_DIR})
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR})

include_directories("${PROJECT_INCLUDE_DIR}")
include_directories("${PROJECT_SOURCE_DIR}")

add_executable( standard_sudoku_generator_def standard_sudoku_generator_def.cpp )


# Use the Relative flag, otherwise each source file may be listed with full pathname. 
# Relative makes it easier to extract an executable name automatically.
#file( GLOB APP_SOURCES ./*.cpp )
#foreach( appsourcefile ${APP_SOURCES} )
#    # I used a simple string replace, to cut off .cpp.
#    string( REPLACE "*.cpp" ".exe" testname "${testsourcefile}" )
#    add_executable( "${testname}" "${testsourcefile}" )
#    # Make sure YourLib is linked to each app
#  #  target_link_libraries( ${testname} YourLib )
#endforeach( appsourcefile ${APP_SOURCES} )
